<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<f:view>

	<h:head>
	</h:head>

	<h:body>
		<ui:param name="pManagedBean" value="#{loginBean}" />
		<h:form>
			<p:messages id="msgs" showDetail="true" autoUpdate="true"
				closable="true" />

			<h:panelGroup layout="block" styleClass="form-group">
				<h:outputLabel value="#{i18n['login.email']}" />
				<p:inputText id="j_username" value="#{loginBean.usuario.email}"
					styleClass="form-control" placeholder="#{i18n['login.email.wm']}" />
			</h:panelGroup>

			<h:panelGroup layout="block" styleClass="form-group">
				<h:outputLabel for="j_password" value="#{i18n['login.senha']}" />
				<p:password id="j_password" value="#{loginBean.confirmaSenha}"
					styleClass="form-control" placeholder="#{i18n['login.senha.wm']}" />
			</h:panelGroup>
			<p:defaultCommand target="btnEntrar" />

			<h:panelGroup layout="block" styleClass="form-group">
				<p:commandLink id="btnEntrar" action="#{loginBean.doLogar}"
					ajax="false" styleClass="btn btn-primary">
					<h:outputText value="#{i18n['login.btnlogar']}" />
				</p:commandLink>
			</h:panelGroup>

		</h:form>

	</h:body>
</f:view>

</html>
